package com.example.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 交易风险监控表
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
@TableName("tb_transaction_risk_monitoring")
public class TransactionRiskMonitoring extends Model<TransactionRiskMonitoring> {

    private static final long serialVersionUID = 1L;

    /**
     * 监控记录唯一标识
     */
    @TableId("monitor_id")
    private Long monitorId;
    /**
     * 订单ID（关联订单表）
     */
    @TableField("order_id")
    private Long orderId;
    /**
     * 用户ID（关联用户表）
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 风险等级（0：低风险，1：中风险，2：高风险）
     */
    @TableField("risk_level")
    private Integer riskLevel;
    /**
     * 风险原因
     */
    @TableField("risk_reason")
    private String riskReason;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public Long getMonitorId() {
        return monitorId;
    }

    public void setMonitorId(Long monitorId) {
        this.monitorId = monitorId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(Integer riskLevel) {
        this.riskLevel = riskLevel;
    }

    public String getRiskReason() {
        return riskReason;
    }

    public void setRiskReason(String riskReason) {
        this.riskReason = riskReason;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


    @Override
    public String toString() {
        return "TransactionRiskMonitoring{" +
        ", monitorId=" + monitorId +
        ", orderId=" + orderId +
        ", userId=" + userId +
        ", riskLevel=" + riskLevel +
        ", riskReason=" + riskReason +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
